package com.lldpet.spring.cloud.demo.stream.consumer.demo.channel;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @desc：BpsSource 自定义通道
 * @author: guanliang.xue
 * @date: 2021/5/12 09:09
 * @version:
 * @since:
 */
public interface BpsSource {

    String INPUT_CHANNEL = "bpsInput";
    String OUTPUT_CHANNEL = "bpsOutput";

    /**
     * 输入通道
     * @return
     */
    @Input(BpsSource.INPUT_CHANNEL)
    SubscribableChannel input();

    /**
     * 输出通道
     * @return
     */
    @Output(BpsSource.OUTPUT_CHANNEL)
    MessageChannel output();



}
